package cn.stylefeng.guns.modular.basic.mapper;

import cn.stylefeng.guns.modular.basic.entity.BasicTypeGs;
import cn.stylefeng.guns.modular.basic.model.params.BasicTypeGsParam;
import cn.stylefeng.guns.modular.basic.model.params.BasicTypeParam;
import cn.stylefeng.guns.modular.basic.model.result.BasicTypeGsResult;
import cn.stylefeng.guns.modular.basic.model.result.BasicTypeResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wzh
 * @since 2024-01-12
 */
public interface BasicTypeGsMapper extends BaseMapper<BasicTypeGs> {

    /**
     * 获取列表
     *
     * @author wzh
     * @Date 2024-01-12
     */
    List<BasicTypeGsResult> customList(@Param("paramCondition") BasicTypeGsParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wzh
     * @Date 2024-01-12
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BasicTypeGsParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wzh
     * @Date 2024-01-12
     */
    Page<BasicTypeGsResult> customPageList(@Param("page") Page page, @Param("paramCondition") BasicTypeGsParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author wzh
     * @Date 2024-01-12
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BasicTypeGsParam paramCondition);

    List<BasicTypeGsResult> List2(@Param("paramCondition")BasicTypeGsParam basicTypeGsParam);
}
